/**
 * 
 */
package co.edu.uniandes.distribuidos.checkpoint.events;

import co.edu.uniandes.distribuidos.peer.Peer;

/**
 * @author Andrey
 *
 */
public class ShareEvent extends Event {

	private String filename;
	private String palabrasClave;

	public ShareEvent(String absolutePath, String palabrasClave) {
		this.filename=absolutePath;
		this.palabrasClave=palabrasClave;
	}
	
	public ShareEvent(){
		
	}

	/* (non-Javadoc)
	 * @see co.edu.uniandes.distribuidos.checkpoint.events.Event#execute(co.edu.uniandes.distribuidos.peer.Peer)
	 */
	@Override
	public void execute(Peer peer) {
		peer.shareFile(this);
	}
	

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getPalabrasClave() {
		return palabrasClave;
	}

	public void setPalabrasClave(String palabrasClave) {
		this.palabrasClave = palabrasClave;
	}

}
